#ifndef DEMO_OBJECTWRAPPER_H
#define DEMO_OBJECTWRAPPER_H

#include "objectwrapperbase.h"

class ObjectWrapper : public ObjectWrapperBase
{
    Q_OBJECT

public:
    ObjectWrapper(Object& object, QScriptEngine& engine, QObject* parent = 0) :
        ObjectWrapperBase(object, engine, parent)
    {}

    Q_INVOKABLE virtual QScriptValue increment()
    {
        ++m_object;
        return m_engine.newQObject(this);
    }
};

#endif
